<!DOCTYPE html>
<html>
	<head>

		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		<title>后台 - 机器人竞猜</title>
		<meta name="keywords" content="">
		<meta name="description" content="">

		<link rel="shortcut icon" href="favicon.ico">
		<link href="__PUBLIC__/Admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/plugins/iCheck/custom.css" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">

	</head>
	<style>
		/*分页样式*/
		.pages a,.pages span {
		    display:inline-block;
		    padding:4px 7px;
		    margin:0 2px;
		    border:1px solid #D5D4D4;
		    -webkit-border-radius:1px;
		    -moz-border-radius:1px;
		    border-radius:1px;
		}
		.pages a,.pages li {
		    display:inline-block;
		    list-style: none;
		    text-decoration:none; color:#3399ff;
		}
		
		.pages a:hover{
		    border-color:#3399ff;
		}
		.pages span.current{
		    background:#3399ff;
		    color:#FFF;
		    font-weight:700;
		    border-color:#3399ff;
		}
		.pages{
			text-align: center;
		}
		/*分页样式*/
	</style>
	<body class="gray-bg">
		<div class="wrapper wrapper-content animated fadeInRight">	
			<div class="row">
				<div class="col-sm-12">
					<div class="ibox float-e-margins">
						<div class="ibox-title">
							<h5>机器人竞猜</h5>
						</div>
						<div class="ibox-content">
							<div class="row">
								<div class="col-sm-8">
									<form method="post" action="{:U('Admin/Robot/message')}">
										<div class="input-group">
										<div class="col-sm-4">
											<select class="form-control" name="type">
												<option value="1" <if condition="$info['type'] eq '1'">selected</if>  >{:C('lang_bj28_1')}</option>
												<option value="2" <if condition="$info['type'] eq '2'">selected</if>  >{:C('lang_bj28_2')}</option>
												<option value="3" <if condition="$info['type'] eq '3'">selected</if>  >{:C('lang_bj28_3')}</option>
												<option value="4" <if condition="$info['type'] eq '4'">selected</if>  >{:C('lang_jnd28_1')}</option>
												<option value="5" <if condition="$info['type'] eq '5'">selected</if>  >{:C('lang_jnd28_2')}</option>
												<option value="6" <if condition="$info['type'] eq '6'">selected</if>  >{:C('lang_jnd28_3')}</option>
												<option value="7" <if condition="$info['type'] eq '7'">selected</if>  >{:C('lang_jnd28_4')}</option>
											</select>
										</div>
										<div class="col-sm-4">

											<select name="zuhe" class="form-control">
											<option value="" >全部</option>
												<volist name="zuhe_value" id="vo">
													<option value="{$vo.id}" <if condition="$zuhe eq $vo['id']">selected</if> >{$vo.name}</option>
												</volist>
											</select> 
										</div>
										<div class="col-sm-2">
	                                    	<button type="submit" class="btn btn-sm btn-primary"> 搜索</button> 
	                                    </div>
	                                    <div class="col-sm-2">
	                                    <a class="input-group-btn" href="{:U('Admin/Robot/add_message')}"><span class="btn btn-sm btn-success">添加竞猜</span></a>
	                                    </div>
										</div>
									</form>
								</div>
							</div>


							<div class="table-responsive">
								<table class="table table-striped table-hover table-bordered">
									<thead>
										<tr>
											<th>ID</th>
											<th>类型</th>
											<th>竞猜</th>
											<th>所属组合id</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
										<volist name="list" id="vo">
											<tr>
												<td width="40">{$vo.id}</td>
												<td width="120" style="text-align: center;">
													<if condition="$vo.type eq 1">{:C('lang_bj28_1')} </if>
													<if condition="$vo.type eq 2">{:C('lang_bj28_2')} </if>
													<if condition="$vo.type eq 3">{:C('lang_bj28_3')} </if>
													<if condition="$vo.type eq 4">{:C('lang_jnd28_1')} </if>
													<if condition="$vo.type eq 5">{:C('lang_jnd28_2')} </if>
													<if condition="$vo.type eq 6">{:C('lang_jnd28_3')} </if>
													<if condition="$vo.type eq 7">{:C('lang_jnd28_4')} </if>
													
												</td>
												<td width="200">{$vo.content}</td>
												<td width="200">{$vo.zuhe}</td>
												<td>
													<a href="__APP__/Admin/Robot/edit_message/id/{$vo.id}" class="btn btn-primary">编辑</a>
													<a onclick="del({$vo.id})" class="btn btn-warning">删除</a>
												</td>
											</tr>
										</volist>
									</tbody>
								</table>
							</div>
							<div class="pages">
								{$show}
							</div>
						</div>
					</div>
				</div>

			</div>
		</div>
		<script src="__PUBLIC__/Admin/js/jquery.min.js?v=2.1.4"></script>
		<script src="__PUBLIC__/Admin/js/bootstrap.min.js?v=3.3.6"></script>
		<script src="__PUBLIC__/Admin/js/plugins/iCheck/icheck.min.js"></script>
		<script src="__PUBLIC__/Common/layer/layer.js"></script>
		<script>
			$(document).ready(function() {
				$(".i-checks").iCheck({
					checkboxClass: "icheckbox_square-green",
					radioClass: "iradio_square-green",
				})
			});
		</script>
		<script>
			function del(id){
				layer.confirm('确定要删除吗？', {
				  	btn: ['确定','取消'] //按钮
				}, function(){
				  	window.location.href="__APP__/Admin/Robot/del_message/id/" + id + ""
				});
			}
		</script>
	</body>

	
</html>